 <!-- Columns -->
      <div id="cols" class="box"> 
    
    <!-- Aside (Left Column) -->
    <div id="aside" class="box">
          <div class="padding box"> 
        
        <!-- Logo (Max. width = 200px) -->
        <p id="logo"><a href="#"><?php echo $this->Html->image('logo.gif', array('alt' => 'logo'))?></a></p>
        
        <!-- Search -->
        <form action="#" method="get" id="search">
              <fieldset>
            <legend>Busqueda</legend>
            <p>
                  <input type="text" size="17" name="" class="input-text" />
                  &nbsp;
                  <input type="submit" value="BUSCAR" class="input-submit-02" />
                  <br />
                 
            
          </fieldset>
            </form>
        
        <!-- Create a new project -->
      
      </div>
          <!-- /padding -->
          
          <ul class="box">
        <li id="submenu-active"><?php echo $this->Html->link('LISTA SUCURSALES ', array('action'=>'index')); ?></li>
        <li><?php echo $this->Html->link('REGISTRAR SUCURSAL', array('action'=>'insertar')); ?></li>
        <li><a href="#">IMPRIMIR LISTA</a></li>
      </ul>
        </div>
    <!-- /aside -->
    
    <hr class="noscreen" />
    
    <!-- Content (Right Column) -->
    <div id="content" class="box">
          <h1>LISTA DE SUCURSALES</h1>
          <?php if(empty($data)):?>
<h2>No Existen Maquinarias Registradas</h2>
<?php else:?>

          <h3 class="tit"></h3>
          
          
          <!-- Table (TABLE) -->
        <table>
        <tr>
              <th>NOMBRE</th>
              <th>DIRECCION</th>
              <th>TELEFONO</th>
              <th>ACCIONES</th>
            </tr>

<?php $i=0;foreach ($data as $sucursal): ?>


        <tr <?php echo fmod($i, 2) ? "" : "class='bg'" ?>>
              <td><?php echo $sucursal['Sucursale']['nombre']?></td>
              <td><?php echo $sucursal['Sucursale']['direccion']?></td>
              <td><?php echo $sucursal['Sucursale']['telefono']?></td>
             
              <td style="font-size:10px;"><?php echo $this->Html->link('MODIFICAR', array('action'=>'editar', $sucursal['Sucursale']['id']),array('class'=>'inner_a')); ?> <?php echo $this->Html->link('ELIMINAR', array('action'=>'eliminar', $sucursal['Sucursale']['id']),array('class'=>'inner_a')); ?></td>
            </tr>
            <?php $i++; endforeach; ?>
      </table>
       <?php endif;?>   
                 </div>
    <!-- /content --> 
    
  </div>
      <!-- /cols -->